var config = require('../../../../../config');
var filter = require('../../../../../framework/filter');
var eventController = require('./contrl');

exports = module.exports = function(server) {
    server.get(config.api_version  + 'eventOpt/queryEventBySubId', eventController.queryEventBySubId);
    server.get(config.api_version  + 'event/:id', eventController.findById);
    server.post(config.api_version  + 'event', eventController.save);
    server.post(config.api_version  + 'event/:id', eventController.update);
    server.delete(config.api_version  + 'event/:id', eventController.delete);
};